package com.itheima.domain;

import java.util.List;

public class NewTrip {
    private int id;
    private String fromAddress;
    private String toAddress;
    private String startTime;

    @Override
    public String toString() {
        return "NewTrip{" +
                "id=" + id +
                ", fromAddress='" + fromAddress + '\'' +
                ", toAddress='" + toAddress + '\'' +
                ", startTime='" + startTime + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFromAddress() {
        return fromAddress;
    }

    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    public String getToAddress() {
        return toAddress;
    }

    public void setToAddress(String toAddress) {
        this.toAddress = toAddress;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public NewTrip(int id, String fromAddress, String toAddress, String startTime) {
        this.id = id;
        this.fromAddress = fromAddress;
        this.toAddress = toAddress;
        this.startTime = startTime;
    }

    public NewTrip() {
    }
}
